import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/question/list',
    method:'get',
    params:params
  })
}

export function updateValidStatus(params) {
  return request({
    url:'/question/updateValidStatus',
    method:'post',
    params:params
  })
}
export function updateVerifyStatus(params) {
  return request({
    url:'/question/updateVerifyStatus',
    method:'post',
    params:params
  })
}

export function createQuestion(data) {
  return request({
    url:'/question/add',
    method:'post',
    data:data
  })
}

export function updateQuestion(id,data) {
  return request({
    url:'/question/update/'+id,
    method:'post',
    data:data
  })
}
export function getQuestion(id) {
  return request({
    url:'/question/get/'+id,
    method:'get',
  })
}

export function deleteQuestion(id) {
  return request({
    url:'/question/delete/'+id,
    method:'delete',
  
  })
}

export function updateTestStatus(params) {
  return request({
    url:'/question/updateTestStatus',
    method:'post',
    params:params
  })
}
export function getTestStatus(params) {
  return request({
    url:'/question/listTestStatus',
    method:'get',
    params:params
  })
}

export function listQuestions(params) {
  return request({
    url:'/question/listQuestions',
    method:'get',
    params:params
  })
}

export function listAnswers(params) {
  return request({
    url:'/question/listAnswers',
    method:'get',
    params:params
  })
}



